package com.home.demo.entity.vo.user;


import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 登陆时返回数据的VO类
 */
@Data
public class UserLoginVO implements Serializable {
    /**
     * id
     */
    private String id;
    /**
     * 账号
     */
    private String username;
    /**
     * 密码
     */
    private String password;

    /**
     * 实名
     */
    private String name;

    /**
     * 手机号
     */
    private String phone;
    private Integer status;
    private String birthday;
    private Integer age;
    private String graduation_inst;
    private String education_qual;
    private String professional_title;
private String professional_cert;

    /**
     * 角色
     */
    private List<RoleLoginVO> roleList = new ArrayList<>();

    /**
     * 菜单
     */
    private List<MenuLoginVO> menuList = new ArrayList<>();

    @Data
    public static class MenuLoginVO implements Serializable {

        private  Integer sort;
        private  String icon;
        private String menuId;

        private String parentId;

        private String path;

        private String title;

        private List<MenuLoginVO> children;
    }

    @Data
    public static class RoleLoginVO implements Serializable {

        private String roleId;

        private String role;

    }



}
